import {
  request
} from './request'

export function getCateList() {
  return request({
    url: 'categories'
  })
}

export function getParams(id, sel) {
  return request({
    url: `categories/${id}/attributes`,
    params: {
      sel
    }
  })
}

export function addGoods(form) {
  return request({
    url: `goods`,
    method: 'post',
    data: form
  })
}